<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<s:head theme="ajax" />

		<title>专利奖励复审项目信息</title>
		<link rel="stylesheet" type="text/css" href="../../css/counter.css">
		<link rel="stylesheet" type="text/css" href="../../css/css.css">

		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<script type="text/javascript" src="../../javascript/common.js"></script>



	</head>

	<body>

		<TABLE cellSpacing="0" cellPadding="0" width="100%" align="center"
			border="0">
			<TBODY>
				<TR>
					<TD>
						<IMG src="../../images/manage/arron1.gif">
						<FONT class="font_lv">${xmTitle} </FONT>
						<s:set name="password" value="#session.logininfo.password" />
					</TD>
					<td>
					</td>
				</TR>
			</TBODY>
		</TABLE>
		<s:set name="zjid" value="#session.expertModel.FBh"></s:set>


		<form action="modifyShbz.action" name=form2 method="post"
			onSubmit="return oncheckboxsubmit();">
			<TABLE cellSpacing="1" cellPadding="1" width="100%" align="center"
				border="0">
				<tr>
					<td>
						<input class="btn1" type="button" name="query" value="查询"
							onClick="toSearch('search_div');">




					</td>
					<td align="right">
						${pageStr}
					</td>

				</tr>
			</table>

			<TABLE cellSpacing="1" cellPadding="1" width="100%" border="0">

				<TR>
					<TD class=line>
						<table height="100%" cellSpacing=1 cellPadding=2 width="100%"
							bgColor=#CCCCCC border=0>
							<tr>

								<td align="center" background="../../images/manage/title_bg.jpg"
									class="font_12_B_w">
									序号
								</td>
								<td align="center" background="../../images/manage/title_bg.jpg"
									class="font_12_B_w">
									专利权人
								</td>


								<td align="center" background="../../images/manage/title_bg.jpg"
									class="font_12_B_w">
									项目名称
								</td>
								<td align="center" background="../../images/manage/title_bg.jpg"
									class="font_12_B_w">
									专利号
								</td>

								<td align="center" background="../../images/manage/title_bg.jpg"
									class="font_12_B_w">
									推荐单位
								</td>

						
								<td align="center" background="../../images/manage/title_bg.jpg"
									class="font_12_B_w">
									状态
								</td>


								<td align="center" background="../../images/manage/title_bg.jpg"
									class="font_12_B_w">
									操作
								</td>

							</tr>
                           <s:if test="${empty review1List}">
                           <tr><td colspan="7" align="center">还没有项目通过预审，请等待预审完成！</td></tr>
                           </s:if>
							<s:iterator value="review1List" id="re1" status="b">

								<tr bgColor=#FFFFFF>

									<td width="3%" align="center">
										${pageRow+b.count}
									</td>

									<td width="16%" align="center">
										<s:property value="basicInfoModel.zlqr" />
									</td>
									<td width="20%">
										<s:property
												value="basicInfoModel.name" />
									</td>
									<td width="8%">
										<a
											href="http://search.sipo.gov.cn/sipo/zljs/hyjs-jieguo.jsp?flag3=1&sign=0&searchword=%C9%EA%C7%EB%BA%C5%3D%27%25${zlid2Link}%25%27"
											target="_blank"><s:property value="basicInfoModel.zlid2" />
										</a>
									</td>

									<td width="11%">
										<s:property value="basicInfoModel.qxkwmc" />
									</td>

								
									<td width="6%" align="center">
										<s:if test="${checkFlag eq true &&  checkResults ne true}">
											<font color="#00A300">已评分</font>

										</s:if>
										<s:elseif test="${checkFlag ne true &&  checkResults eq true}">
											<font color="red">未评分</font><br /><font color="#00FF00">(通过复审)</font>
										</s:elseif>
										<s:elseif test="${checkFlag eq true &&  checkResults eq true}">
											<font color="#00FF00">通过复审</font>
										</s:elseif>
										<s:else>
											<font color="red">未评分</font>
										</s:else>
									</td>
									<td width="13%" align="center">

										<s:url id="zlUrl" namespace="/admin" action="viewZl">
											<s:param name="zlid" value="zlid"></s:param>
										</s:url>
										<a href="viewZl.action?zlid=${basicInfoModel.zlid}"
											target="_blank">详细信息</a>
										<s:if test="${true ne checkResults}">|
										<a
												href=viewReview2Xm.action?xmId=${basicInfoModel.zlid}&zjId=${zjid}>
												项目评分</a>
										</s:if>



									</td>

								</tr>
							</s:iterator>
						</table>
					</td>
				</tr>
			</table>
		</form>
		<form name="queryModel" action="expertsreview2XmList.action"
			method="post">
			<DIV id="search_div"
				style="BORDER-RIGHT: #cee6ff 1px outset; BORDER-TOP: #cee6ff 1px outset; LEFT: 15%;  OVERFLOW: hidden; VISIBILITY: hidden; BORDER-LEFT: #cee6ff 1px outset; WIDTH: 500px; BORDER-BOTTOM: #cee6ff 1px outset; POSITION: absolute; TOP: 25%; HEIGHT: 175px;overflow:no; BACKGROUND-COLOR: #eeeeee">
				<table width="100%" cellpadding="0" cellspacing="0"
					bgcolor="#ffffff">
					<tr>
						<td>

							<TABLE height="100%" cellSpacing=1 cellPadding=2 width="100%"
								bgColor=#ffffff border=0>
								<TBODY>
									<TR class=bg height=23>
										<td width="4%" background="../../images/manage/title_bg.jpg"
											class="font_12_B_w">
											<IMG src="../../images/manage/arron1.gif">
											发明专利信息查询
										</TD>
									</TR>
								</TBODY>
							</TABLE>
							<TABLE height="100%" cellSpacing=1 cellPadding=2 width="100%"
								bgColor=#ffffff border=0>
								<TR>
									<th bgcolor="#EAEEEE" class="font__12_grey">
										专利号
									</Th>
									<td bgcolor="#EAEEEE" class="font__12_grey">
										<input type=text name="bm_txj1$basicinfo$zlid2"
											Class="id_kuang">
									</TD>
									<th bgcolor="#EAEEEE" class="font__12_grey">
										申报人
									</Th>
									<td bgcolor="#EAEEEE" class="font__12_grey">
										<input name="bm_bm_txj1$basicinfo$sbr" Class="id_kuang">
									</TD>
								</TR>
								<TR>
									<th bgcolor="#EAEEEE" class="font__12_grey">
										专利名称
									</Th>
									<td bgcolor="#EAEEEE" class="font__12_grey">
										<input name="bm_bm_txj1$basicinfo$name" Class="id_kuang">
									</TD>
									<th bgcolor="#EAEEEE" class="font__12_grey">
										专利类别
									</Th>
									<td bgcolor="#EAEEEE" class="font__12_grey">
										<input name="bm_bm_txj1$basicinfo$zltype" Class="id_kuang">
									</TD>
								</TR>
								
							

							</TABLE>

							<table width="100%" border="0" cellpadding="0" cellspacing="0"
								bgcolor="#EAEEEE">
								<tr>
									<td>
										<CENTER>
											<input type="submit" name="tj" value="提交">
											&nbsp;&nbsp;
											<input type="button" onClick="toSearch('search_div')"
												name="qx" value="取消">

										</CENTER>
									</td>
								</tr>
							</table>

						</td>
					</tr>
				</table>
			</DIV>
		</form>
		<s:url id="smdUrl" namespace="/admin" action="changeZxbz" />

	</body>
	<script type="text/javascript">
	 function alert_delBasicinfo(zlid)
	{
		if(confirm("确实要删除该专利信息吗？")){
			window.location="delBasicInfo.action?zlid="+zlid
			return true;
		}
		else{
			return false;
		}
	}
    function alert_updateZxbz(zlid,zxbz,obj)
	{
		if(confirm("确实要改变注销标志吗？")){
			updateZxbz(zlid,zxbz,obj);
			return true;
		}
		else{
			return false;
		}
	}
	
    function updateZxbz(zlid,zxbz,obj){
    dojo.require("dojo.rpc.*");
    
    //create service object(proxy) using SMD (generated by the json result)
    var service = new dojo.rpc.JsonService("${smdUrl}");
   // var name=document.getElementById('name').value;
       //parameter
       var zl="0";
      if(obj.innerHTML=="已注销"){
        zl="1";
      
      }else {
         zl="0";
      }
    var bean= {zlid:zlid,zxbz:zl};
    
    //execute remote method
   
    var defered = service.doChangeZxbz(bean);
    
    //function called when remote method returns
   
    
    var callback = function(bean) {
        if(bean.zxbz=="1"){
        alert("该专利已经注销！");
        
        obj.innerHTML="已注销";
        }else {
        alert("该专利已设为未注销状态！");
        obj.innerHTML="未注销";
        }
      
        
    };
   
 

    //attach callback to defered object
    defered.addCallback(callback);
    }
</script>
</html>
